{include_core file="admin/lib/header.html" title="提示信息"}
<style>
  .prompt-h{
    display: inline-block;
    background: url("{$smarty.const.SITE_URL}/images/exclamation-diamond.png") no-repeat;
    width:16px;
    height: 16px;
  }
</style>
<div class="row-fluid sortable ui-sortable">
    <div class="span5" style="margin-left:50px;">
        <div class="box-header well">
            <h2 style="margin-bottom:10px;color:#444;font-size:18px;">
            <i class="prompt-h"></i>
            {if $type=='success'}
	          成功!
	        {elseif $type=="error"}
	          错误! 
	        {elseif $type=="notice"}
	          注意!
	        {else}
	          提示!
	        {/if}
            </h2>
        </div>
        <div class="box-content alerts">
            <div class="alert alert-{$type}" style="background:#EDF9F8;font-size:14px;color:#666">
                <h3> {$msg} </h3>
            </div>
            <p class="center" style="margin-left:0px;margin-top:15px;">
                {if $redirect_url }
                <a href="{$redirect_url}" id="jumpUrlBtn" class="btn btn-large btn-primary"><i class="icon-chevron-left icon-white"></i> 点击跳转</a> （<em id="jumpTime">5</em>秒后自动跳转） 
                {else}
                <a href="javascript:history.back();" class="btn btn-large btn-success"><i class="icon-chevron-left icon-white"></i> 返回上一页</a> 
                {/if}
            </p>
        </div>  
    </div><!--/span-->
</div>
{if $redirect_url}
<script type="text/javascript">
var time = 5;
var jumpInterval = setInterval(function(){
  time--;
  if (time < 0) time = 0;
  $("#jumpTime").text(time);
  if (time == 0) {
      clearInterval(jumpInterval);
      window.location.href = $('#jumpUrlBtn').attr('href');
  }
}, 1000);
</script>
{/if}
{include_core file="admin/lib/footer.html"}